package com.hyperchain.service.Impl;

import com.hyperchain.notification.NoticeCationBaseStrategy;
import com.hyperchain.notification.NotificationStrategy;
import com.hyperchain.notification.NotificationType;
import com.hyperchain.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NotificationServiceImpl implements NotificationService {

    @Autowired
    private NotificationStrategy notificationStrategy;
    @Override
    public String getMethod(NotificationType type) {
        return notificationStrategy.doMethod(type);
    }
}
